<?php
declare (strict_types = 1);

namespace app\rbac\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Admin extends Model
{
    /**
     * 建立多对多的关系
     * belongsToMany
     */
    public function role(){
        return $this->belongsToMany(Role::class,AdminRole::class);
    }
}
